package com.j2203.controller;

import com.j2203.entity.GmType;
import com.j2203.service.impl.GmTypeServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/gmtype")
public class GmTypeController {
    @Autowired
    private GmTypeServiceImpl gmTypeService;
    @GetMapping("select")
    public List<GmType> typesele(){
        System.out.println("dfef");
        List<GmType> gmtypeall = gmTypeService.gmtypeall();
        return gmtypeall;
    }
}
